package com.heima.model.behavior.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class LikesBehaviorDTO {
    /**
     * 文章、动态、评论等id
     */
    @NotNull
    private Long articleId;
    /**
     * 设备id
     */
    private Integer equipmentId;
    /**
     * 操作
     * 0 点赞
     * 1 取消赞
     */
    @Range(min = 0,max = 1)
    private Short operation;
    /**
     * 喜欢内容类型
     * 0 文章
     * 1 动态
     * 2 评论
     */
    @Range(min = 0,max = 2)
    private Short type;
}
